<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
Route::rule('Api/test','Index/index','GET|POST|OPTIONS')->middleware(\app\middleware\Check::class);

/**
 * 权限类
 */
Route::rule('Api/GetMenu','Permiss/GetMenu','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetRoleList','Permiss/GetRoleList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetRoleDetail','Permiss/GetRoleDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/RoleEdit','Permiss/RoleEdit','GET|POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/RoleDel','Permiss/RoleDel','GET|POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateRoleStatus','Permiss/UpdateRoleStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetAdminList','Permiss/GetAdminList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetAdminDetail','Permiss/GetAdminDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/AdminEdit','Permiss/AdminEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/AdminDel','Permiss/AdminDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateAdminStatus','Permiss/UpdateAdminStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/SetRoleDefault','Permiss/SetDefault','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/test1','Permiss/test1','GET|OPTIONS')->middleware(\app\middleware\Check::class);


/**
 * 用户
 */
Route::rule('Api/Login','User/Login','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/Register','User/Register','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/ForgetPwd','User/ForgetPwd','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateUser','User/UpdateUser','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/SendCode','Mobile/SendCode','GET|POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetUseInfo','User/GetUseInfo','GET|POST|OPTIONS')->middleware(\app\middleware\Check::class);


//企业
Route::rule('Api/GetCompanyList','Company/GetList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompanyDetail','Company/CompanyDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompanyTotal','Company/GetCompanyTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//园区
Route::rule('Api/GetParkList','Park/GetList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetParkTotal','Park/GetParkTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//政策
Route::rule('Api/GetPolicyTypeList','Policy/GetPolicyTypeList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetPolicyList','Policy/GetPolicyList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetPolicyDetail','Policy/GetPolicyDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetPolicyTotal','Policy/GetPolicyTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//智库
Route::rule('Api/GetTankList','Tank/GetTankList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetTankDetail','Tank/GetTankDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetTankTotal','Tank/GetTankTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//投融
Route::rule('Api/GetInvestEventList','Invest/GetInvestEventList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetInvestOrganList','Invest/GetInvestOrganList','GET|OPTIONS')->middleware(\app\middleware\Check::class);


//标签
Route::rule('Api/GetChain','Label/GetChainInfo','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetChainDetail','Label/GetChainDetailById','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCity','Label/GetCityInfo','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetIndustry','Label/GetIndustryInfo','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetUserOrPlatformChain','Label/GetUserOrPlatformChain','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompanyLabel','Label/GetCompanylabelInfo','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//招商地图
Route::rule('Api/GetBusinessMap','Map/GetBusinessMap','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompayOrParkNumOnMap','Map/CompayOrParkNumOnMap','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompanyNumOnChain','Map/CompanyNumOnChain','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetChildrenCompanyNumOnChain','Map/ChildrenCompanyNumOnChain','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetCompanyHeat','Map/GetCompanyHeat','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//新闻
Route::rule('Api/GetNewsList','News/GetNewsList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetNewsDetail','News/GetNewsDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/NewsEdit','News/NewsEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/NewsDel','News/NewsDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateNewsStatus','News/UpdateNewsStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);

//舆情
Route::rule('Api/GetOpinionsTypeList','Opinions/GetOpinionsTypeList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetOpinionsList','Opinions/GetOpinionsList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetOpinionsDetail','Opinions/GetOpinionsDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//视频
Route::rule('Api/GetVideosList','Videos/GetVideosList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetVideosDetail','Videos/GetVideosDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/VideosEdit','Videos/VideosEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/VideosDel','Videos/VideosDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateVideosStatus','Videos/UpdateVideosStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);

//本地招商项目
Route::rule('Api/GetLocalprojectsList','Localprojects/GetLocalprojectsList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetLocalprojectsDetail','Localprojects/GetLocalprojectsDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/LocalprojectsEdit','Localprojects/LocalprojectsEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/LocalprojectsDel','Localprojects/LocalprojectsDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateLocalprojectsStatus','Localprojects/UpdateLocalprojectsStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetLocalprojectsTotal','Localprojects/GetLocalprojectsTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//投资项目
Route::rule('Api/GetInvestmentList','Investment/GetInvestmentList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetInvestmentTotal','Investment/GetInvestmentTotal','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//项目线索
Route::rule('Api/GetBusinessclueList','Businessclue/GetBusinessclueList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetBusinessclueDetail','Businessclue/GetBusinessclueDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/BusinessclueEdit','Businessclue/BusinessclueEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/BusinessclueDel','Businessclue/BusinessclueDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateBusinessclueStatus','Businessclue/UpdateBusinessclueStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);

//产业报告
Route::rule('Api/GetReportList','Report/GetReportList','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//监控
Route::rule('Api/GetMonitorList','Monitor/GetMonitorList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/MonitorAddOrCancel','Monitor/MonitorAddOrCancel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetMonitorNewsList','Monitor/GetMonitorNewsList','GET|OPTIONS')->middleware(\app\middleware\Check::class);

//尽调报告
Route::rule('Api/ApplycomreportAdd','Applycomreport/ApplycomreportAdd','POST|OPTIONS')->middleware(\app\middleware\Check::class);


//平台
Route::rule('Api/GetPlatformInfo','Platform/GetPlatformInfo','GET|OPTIONS')->middleware(\app\middleware\Check::class);


//open
Route::rule('Api/GetMapJsonByCode','Open/GetMapJsonByCode','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UploadFife','Open/UploadFife','POST|OPTIONS')->middleware(\app\middleware\Check::class);




//我的项目
Route::rule('Api/GetProjectsList','Projects/GetProjectsList','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetProjectsDetail','Projects/GetProjectsDetail','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/ProjectsEdit','Projects/ProjectsEdit','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/ProjectsDel','Projects/ProjectsDel','POST|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/UpdateProjectsStatus','Projects/UpdateProjectsStatus','POST|OPTIONS')->middleware(\app\middleware\Check::class);

//资源要素
Route::rule('Api/GetResourceInvestCost','Resource/GetInvestCost','GET|OPTIONS')->middleware(\app\middleware\Check::class);
Route::rule('Api/GetResourceMap','Resource/GetMap','GET|OPTIONS')->middleware(\app\middleware\Check::class);






